<h1>Listing contacts</h1>

<table>
  <tr>
    <th>Person</th>
    <th>Address</th>
    <th>Address</th>
    <th>State</th>
    <th>Zip</th>
    <th>Email</th>
    <th>Phone</th>
  </tr>

<% for contact in @contacts %>
  <tr>
    <td><%=h contact.id %></td>
    <td><%=h contact.address %></td>
    <td><%=h contact.address %></td>
    <td><%=h contact.state %></td>
    <td><%=h contact.zip %></td>
    <td><%=h contact.email %></td>
    <td><%=h contact.phone %></td>
    <td><%= link_to 'Show', contact %></td>
    <td><%= link_to 'Edit', edit_contact_path(contact) %></td>
    <td><%= link_to 'Destroy', contact, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New contact', new_contact_path %>
